<html>
<head>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div><a href="?export=1" class="btn btn-info btn-sm">导出</a></div>
<table class="table table-bordered ">
    <tr>
        <th>#</th>
        <th>姓名</th>
        <th>手机</th>
        <th>地址</th>
        <th>车标</th>
        <th>车牌</th>
        <th>门店预约</th>
        <th>门店内容</th>
        <th>提交时间</th>
    </tr>

    @foreach($orders as $key => $o)
    <tr>
        <td>{{$key+1}}</td>
        <td>{{$o->name}}</td>
        <td>{{$o->mobile}}</td>
        <td>{{$o->address}}</td>
        <td>{{$o->carType == 'bp'?'博派':'狂派'}}</td>
        <td>{{$o->carCode}}</td>
        <td>{{$o->hasShop ? '是' : '否'}}</td>
        <td>{!! $o->shop !!}</td>
        <td>{{$o->createdAt}}</td>
    </tr>
    @endforeach

</table>
</body>
</html>
